/*—————————————————————————————————————————————————————————— icon合集 ——————————————————————————————————————————————————————————*/
import * as Icon from '@ant-design/icons'
import iconType,{iconFilledType,iconTwoToneType,iconlinedType} from './interface'
import { iconNameList,iconFilledName,iconlinedName,iconlinedTwoTone } from './iconData'

// 根据icon字符串渲染组件方法
const createIcon = (iconName: iconType) => {
  const NeedIcon = Icon[iconName]

  return <NeedIcon />
}

// 导出内容
export { iconNameList,iconFilledName,iconlinedName,iconlinedTwoTone, createIcon }
export type { iconType,iconFilledType,iconTwoToneType,iconlinedType }
